package com.example.lombokdemo.controller;

import com.example.lombokdemo.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("demoTwo")
public class DemoTwoController {
    @Resource
    private DemoService demoService;

    @GetMapping("/getMyCustomerList")
    public String getMyCustomerList() {
//        HealthCertGenerateUtil.createHealthCert(HealthCertGenerateBo.builder()
//                .certNo("232323")
//                .userName("沈滨彬")
//                .build());
        return "123";
    }

    @GetMapping("/getMyCustomerList1")
    public String getMyCustomerList1() {
//        HealthCertGenerateUtil.createHealthCert(HealthCertGenerateBo.builder()
//                .certNo("232323")
//                .userName("沈滨彬")
//                .build());
        return "1231";
    }


    @PostMapping("/notify/order")
    public String payNotify(@RequestBody String xmlData) {
        log.info("接收数据xmlData:{}",xmlData);
        return null;
    }
}
